package com.geovis.boot.service.demo.file.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@TableName("t_student")
@ApiModel(value = "学生表")
@Accessors(chain = true)
public class Student implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(type= IdType.AUTO,value = "id")
    private Integer id;

    @ApiModelProperty(value = "名称")
    @TableField(value = "name")
    private String name;
    @ApiModelProperty(value = "年龄")
    @TableField(value = "age")
    private Integer age;
}
